<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmPathBrowser.cpp -->
  <meta name="description" content="路径浏览器.">
  <title>QCtmPathBrowser Class | QCustomUi 1.16.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html" translate="no">QCustomUi 1.16.0</a></li>
<li><a href="qcustomui-module.html" translate="no">QCustomUi</a></li>
<li>QCtmPathBrowser</li>
<li id="buildversion">QCustomUi 1.16.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">QCtmPathBrowser Class</h1>
<!-- $$$QCtmPathBrowser-brief -->
<p>路径浏览器. <a href="#details">More...</a></p>
<!-- @@@QCtmPathBrowser -->
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">  <span class="preprocessor">#include &lt;QCtmPathBrowser.h&gt;</span></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> QWidget</td></tr>
</table></div>
<ul>
<li><a href="qctmpathbrowser-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#QCtmPathBrowser" translate="no">QCtmPathBrowser</a></b>(QWidget *<i>parent</i> = nullptr)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#dtor.QCtmPathBrowser" translate="no">~QCtmPathBrowser</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QLineEdit *</td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#lineEdit" translate="no">lineEdit</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#path" translate="no">path</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#readOnly" translate="no">readOnly</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#setLineEdit" translate="no">setLineEdit</a></b>(QLineEdit *<i>editor</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#setPath" translate="no">setPath</a></b>(QString <i>path</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#setReadOnly" translate="no">setReadOnly</a></b>(bool <i>flag</i>)</td></tr>
</table></div>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#cancelEditor" translate="no">cancelEditor</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#initStyleOption" translate="no">initStyleOption</a></b>(QStyleOptionFrame *<i>option</i>) const</td></tr>
</table></div>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#event" translate="no">event</a></b>(QEvent *<i>e</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#eventFilter" translate="no">eventFilter</a></b>(QObject *<i>watched</i>, QEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#minimumSizeHint" translate="no">minimumSizeHint</a></b>() const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#mousePressEvent" translate="no">mousePressEvent</a></b>(QMouseEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#mouseReleaseEvent" translate="no">mouseReleaseEvent</a></b>(QMouseEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#paintEvent" translate="no">paintEvent</a></b>(QPaintEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#resizeEvent" translate="no">resizeEvent</a></b>(QResizeEvent *<i>event</i>) override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="qctmpathbrowser.html#sizeHint" translate="no">sizeHint</a></b>() const override</td></tr>
</table></div>
<!-- $$$QCtmPathBrowser-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@QCtmPathBrowser -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmPathBrowser[overload1]$$$QCtmPathBrowserQWidget* -->
<h3 class="fn" translate="no" id="QCtmPathBrowser"><code class="details extra" translate="no">[explicit]</code> QCtmPathBrowser::<span class="name">QCtmPathBrowser</span>(<span class="type">QWidget</span> *<i>parent</i> = nullptr)</h3>
<p>构造函数 <i translate="no">parent</i>.</p>
<!-- @@@QCtmPathBrowser -->
<!-- $$$~QCtmPathBrowser[overload1]$$$~QCtmPathBrowser -->
<h3 class="fn" translate="no" id="dtor.QCtmPathBrowser"><code class="details extra" translate="no">[virtual noexcept]</code> QCtmPathBrowser::<span class="name">~QCtmPathBrowser</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmPathBrowser -->
<!-- $$$cancelEditor[overload1]$$$cancelEditor -->
<h3 class="fn" translate="no" id="cancelEditor"><code class="details extra" translate="no">[protected]</code> <span class="type">void</span> QCtmPathBrowser::<span class="name">cancelEditor</span>()</h3>
<p>取消编辑操作.</p>
<!-- @@@cancelEditor -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn" translate="no" id="event"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type">bool</span> QCtmPathBrowser::<span class="name">event</span>(<span class="type"><a href="https://doc.qt.io/qt/qevent.html" translate="no">QEvent</a></span> *<i>e</i>)</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qobject.html#event" translate="no">QObject::event</a>(QEvent *e).</p>
<!-- @@@event -->
<!-- $$$eventFilter[overload1]$$$eventFilterQObject*QEvent* -->
<h3 class="fn" translate="no" id="eventFilter"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type">bool</span> QCtmPathBrowser::<span class="name">eventFilter</span>(<span class="type"><a href="https://doc.qt.io/qt/qobject.html#QObject" translate="no">QObject</a></span> *<i>watched</i>, <span class="type"><a href="https://doc.qt.io/qt/qevent.html" translate="no">QEvent</a></span> *<i>event</i>)</h3>
<p>Reimplements: <a href="https://doc.qt.io/qt/qobject.html#eventFilter" translate="no">QObject::eventFilter</a>(QObject *watched, QEvent *event).</p>
<!-- @@@eventFilter -->
<!-- $$$initStyleOption[overload1]$$$initStyleOptionQStyleOptionFrame* -->
<h3 class="fn" translate="no" id="initStyleOption"><code class="details extra" translate="no">[virtual protected]</code> <span class="type">void</span> QCtmPathBrowser::<span class="name">initStyleOption</span>(<span class="type"><a href="https://doc.qt.io/qt/qstyleoptionframe.html" translate="no">QStyleOptionFrame</a></span> *<i>option</i>) const</h3>
<p>初始化样式选项 <i translate="no">option</i>.</p>
<!-- @@@initStyleOption -->
<!-- $$$lineEdit[overload1]$$$lineEdit -->
<h3 class="fn" translate="no" id="lineEdit"><span class="type"><a href="https://doc.qt.io/qt/qlineedit.html" translate="no">QLineEdit</a></span> *QCtmPathBrowser::<span class="name">lineEdit</span>() const</h3>
<p>返回文本编辑器.</p>
<p><b>See also </b><a href="qctmpathbrowser.html#setLineEdit" translate="no">setLineEdit</a>.</p>
<!-- @@@lineEdit -->
<!-- $$$minimumSizeHint[overload1]$$$minimumSizeHint -->
<h3 class="fn" translate="no" id="minimumSizeHint"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type"><a href="https://doc.qt.io/qt/qsize.html" translate="no">QSize</a></span> QCtmPathBrowser::<span class="name">minimumSizeHint</span>() const</h3>
<!-- @@@minimumSizeHint -->
<!-- $$$mousePressEvent[overload1]$$$mousePressEventQMouseEvent* -->
<h3 class="fn" translate="no" id="mousePressEvent"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type">void</span> QCtmPathBrowser::<span class="name">mousePressEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qmouseevent.html" translate="no">QMouseEvent</a></span> *<i>event</i>)</h3>
<!-- @@@mousePressEvent -->
<!-- $$$mouseReleaseEvent[overload1]$$$mouseReleaseEventQMouseEvent* -->
<h3 class="fn" translate="no" id="mouseReleaseEvent"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type">void</span> QCtmPathBrowser::<span class="name">mouseReleaseEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qmouseevent.html" translate="no">QMouseEvent</a></span> *<i>event</i>)</h3>
<!-- @@@mouseReleaseEvent -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn" translate="no" id="paintEvent"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type">void</span> QCtmPathBrowser::<span class="name">paintEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qpaintevent.html" translate="no">QPaintEvent</a></span> *<i>event</i>)</h3>
<!-- @@@paintEvent -->
<!-- $$$path -->
<h3 class="fn" translate="no" id="path"><span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> QCtmPathBrowser::<span class="name">path</span>() const</h3>
<p>返回显示路径.</p>
<div class="admonition note"><p><b>Note: </b>Getter function for property path. </p>
</div><p><b>See also </b><a href="qctmpathbrowser.html#setPath" translate="no">setPath</a>.</p>
<!-- @@@path -->
<!-- $$$readOnly -->
<h3 class="fn" translate="no" id="readOnly"><span class="type">bool</span> QCtmPathBrowser::<span class="name">readOnly</span>() const</h3>
<p>返回是否只读.</p>
<div class="admonition note"><p><b>Note: </b>Getter function for property readOnly. </p>
</div><p><b>See also </b><a href="qctmpathbrowser.html#setReadOnly" translate="no">setReadOnly</a>.</p>
<!-- @@@readOnly -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn" translate="no" id="resizeEvent"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type">void</span> QCtmPathBrowser::<span class="name">resizeEvent</span>(<span class="type"><a href="https://doc.qt.io/qt/qresizeevent.html" translate="no">QResizeEvent</a></span> *<i>event</i>)</h3>
<!-- @@@resizeEvent -->
<!-- $$$setLineEdit[overload1]$$$setLineEditQLineEdit* -->
<h3 class="fn" translate="no" id="setLineEdit"><span class="type">void</span> QCtmPathBrowser::<span class="name">setLineEdit</span>(<span class="type"><a href="https://doc.qt.io/qt/qlineedit.html" translate="no">QLineEdit</a></span> *<i>editor</i>)</h3>
<p>设置自定义的文本编辑器 <i translate="no">editor</i>.</p>
<p><b>See also </b><a href="qctmpathbrowser.html#lineEdit" translate="no">lineEdit</a>.</p>
<!-- @@@setLineEdit -->
<!-- $$$setPath -->
<h3 class="fn" translate="no" id="setPath"><span class="type">void</span> QCtmPathBrowser::<span class="name">setPath</span>(<span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> <i>path</i>)</h3>
<p>设置显示路径 <i translate="no">path</i>.</p>
<div class="admonition note"><p><b>Note: </b>Setter function for property <a href="qctmpathbrowser.html#path" translate="no">path</a>. </p>
</div><p><b>See also </b><a href="qctmpathbrowser.html#path" translate="no">path</a>.</p>
<!-- @@@setPath -->
<!-- $$$setReadOnly -->
<h3 class="fn" translate="no" id="setReadOnly"><span class="type">void</span> QCtmPathBrowser::<span class="name">setReadOnly</span>(<span class="type">bool</span> <i>flag</i>)</h3>
<p>设置是否只读 <i translate="no">flag</i>.</p>
<div class="admonition note"><p><b>Note: </b>Setter function for property <a href="qctmpathbrowser.html#readOnly" translate="no">readOnly</a>. </p>
</div><p><b>See also </b><a href="qctmpathbrowser.html#readOnly" translate="no">readOnly</a>.</p>
<!-- @@@setReadOnly -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn" translate="no" id="sizeHint"><code class="details extra" translate="no">[override virtual protected]</code> <span class="type"><a href="https://doc.qt.io/qt/qsize.html" translate="no">QSize</a></span> QCtmPathBrowser::<span class="name">sizeHint</span>() const</h3>
<!-- @@@sizeHint -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
